/*
 * My_Usart.h
 *
 *  Created on: Mar 25, 2024
 *      Author: Yiwen Zhu
 */

#ifndef SRC_MY_USART_H_
#define SRC_MY_USART_H_

#include "main.h"
#include "usart.h"
#include "Motor_Control_Fcns.h"
#include "Motor_Control_Init.h"

extern uint8_t USART_SEND_BUF[];
extern uint8_t USART_RECV_BUF[];
extern uint16_t Motor_Usart_Data_buf[4];

void init_usart_send_dma(void);
void update_usart_dma(uint16_t* send_buf);
void usart_dma_start_once(void);
void motor_usart_data_update(void);

#endif /* SRC_MY_USART_H_ */
